
import {RouterModule} from "@angular/router";
import { NgModule } from '@angular/core';
import {CommonModule} from "@angular/common";
import { FormsModule }   from "@angular/forms";

import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import {CategoryComponent} from "./components/category-components";
import {categoryRoutes} from "./category.routes";
import {CategoryTreeComponent} from "./components/category-tree-components";
import {CategoryFindService} from "./service/category.find.service";
import {CategoryChildrenComponent} from "./components/category-children-components";
import {CategoryMenuLeftComponent} from "./components/category-menu-left-components";
import {PageDataComponent} from "./components/page-data-component";
// import {Ng2PaginationModule} from "ng2-pagination"

@NgModule({
  imports:[
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    CommonModule,
    // Ng2PaginationModule,
    RouterModule.forChild(categoryRoutes)
  ],
  declarations:[
    CategoryComponent,
    CategoryTreeComponent,
    CategoryChildrenComponent,
    CategoryMenuLeftComponent,
    PageDataComponent
  ],
  providers: [
    CategoryFindService
  ],
  exports:[
    CategoryComponent,
    CategoryTreeComponent,
    CategoryChildrenComponent,
    CategoryMenuLeftComponent,
    PageDataComponent
  ]

})
export class CategoryModule{

}

